Page({
  data:{
    account_id:'',
    account_name:'',
    account_photo:'',
  },
  myappointpage() {
    wx.navigateTo({
      url: '/pages/person/person?' // 跳转到个人信息页面
    });
  },
  openmyorder: function() {
    wx.navigateTo({
      url: '/pages/info/person/person' // 跳转到账号管理页面
    });
  },
   // 当前行的点击
   rowClick() {
    wx.navigateTo({
      url: '/pages/person/person?account_id='+this.data.account_id
    })
  },
  onShow() {
    this.getTabBar().init();
  },
  onLoad(options) {
    const that=this;
    const app=getApp();
    that.setData({
      account_id:app.globalData.account_id,
    })
    wx.request({
      url: 'http://localhost:8080/employee/information/'+that.data.account_id,
      method:'GET',
      success(res){
        that.setData({
          account_name:res.data.name,
          account_photo:res.data.photo,
        })
      }
    })

  },

});
